import request from '@/utils/request'

//头部搜索表单
export function MeetingData(data) {
  return request({
    url: `/api/bt/meeting/query`,
    method: 'post',
    data: data,
  })
}

//新建数据
export function MeetingCreate(data) {
  return request({
    url: `/api/bt/meeting/create`,
    method: 'post',
    data: data,
  })
}

// 打开表单 通过id获取数据
export function MeetingFetchById(id) {
  return request({
    url: `/api/bt/meeting/fetchId/${id}`,
    method: 'get',
  })
}

//删除
export function MeetingDeleteById(id) {
  return request({
    url: `/api/bt/meeting/delete/${id}`,
    method: 'get',
  })
}

//更新
export function MeetingUpdate(data) {
  return request({
    url: `/api/bt/meeting/update`,
    method: 'post',
    data: data,
  })
}

